package legumes.client.ui.otherboxes;

import legumes.shared.domain.SellSessionForCustomer;

import com.smartgwt.client.widgets.layout.VLayout;

public class AllContentBoxesPanel extends VLayout {

	private ConnexionBoxPanel connexionBoxPanel;
	private ReceipesBoxPanel receipesBoxPanel;
	private OrderBoxPanel orderBoxPanel;
//	private CustomerStoresBoxPanel storesBoxPanel;
	private MapBoxPanel mapBoxPanel;
	private StoreReseachByZipCodeBoxPanel storeReseachByZipCodeBoxPanel;
	private StoreInfosBoxPanel storeInfosBoxPanel;
	public AllContentBoxesPanel() {
		super();
		setHeight("*");
		setWidth(350);
		
		connexionBoxPanel = new ConnexionBoxPanel();
		orderBoxPanel = new OrderBoxPanel();
		
//		storesBoxPanel = new CustomerStoresBoxPanel();
//		storesBoxPanel.setVisible(false);
		mapBoxPanel = new MapBoxPanel(null);
		storeReseachByZipCodeBoxPanel = new StoreReseachByZipCodeBoxPanel();
		storeInfosBoxPanel = new StoreInfosBoxPanel();
		storeInfosBoxPanel.setVisible(false);
		
		receipesBoxPanel = new ReceipesBoxPanel();
		receipesBoxPanel.setVisible(false);
		
		setMembersMargin(5);  
        setLayoutMargin(10); 
        
		setMembers(connexionBoxPanel, orderBoxPanel, storeReseachByZipCodeBoxPanel, mapBoxPanel, storeInfosBoxPanel, receipesBoxPanel);
	}
	
	public void initData(SellSessionForCustomer ssfc_){
		receipesBoxPanel.initData(ssfc_);
		orderBoxPanel.initData(ssfc_);
	}
	
}
